<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Simpla Admin</title>
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="/Public/resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="/Public/resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="/Public/resources/css/invalid.css" type="text/css" media="screen" />
<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="/Public/resources/scripts/jquery-1.3.2.min.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="/Public/resources/scripts/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="/Public/resources/scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="/Public/resources/scripts/jquery.wysiwyg.js"></script>
<!-- jQuery Datepicker Plugin -->
<script type="text/javascript" src="/Public/resources/scripts/jquery.datePicker.js"></script>
<script type="text/javascript" src="/Public/resources/scripts/jquery.date.js"></script>
<script language="javascript" type="text/javascript" src="__APP__/../public/xheditor/jquery/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="__APP__/../public/xheditor/xheditor-1.1.6-zh-cn.min.js"></script>

<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$('#content_text').xheditor({upLinkUrl:"/index.php/Admin/Content/upload",upLinkExt:"zip,rar,txt",upImgUrl:"/index.php/Admin/Content/uploadimg",upImgExt:"jpg,jpeg,gif,png",upFlashUrl:"/index.php/Admin/Content/upload",upFlashExt:"swf",upMediaUrl:"/index.php/Admin/Content/upload",upMediaExt:"wmv,avi,wma,mp3,mid",shortcuts:{'ctrl+enter':submitForm}});
}

function insertUpload(arrMsg)
{
	var i,msg;
	for(i=0;i<arrMsg.length;i++)
	{
		msg=arrMsg[i];
		$("#uploadList").append('<option value="'+msg.id+'">'+msg.localname+'</option>');
	}
}

function submitForm(){$('#frmDemo').submit();}
</script>

</head>
<body>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- Sidebar with logo and menu -->
      <h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
      <!-- Logo (221px wide) -->
      <a href="http://127.0.0.1/index.php"><img id="logo" src="/Public/resources/images/logo.png" alt="Simpla Admin logo" /></a>
      <!-- Sidebar Profile links -->
      <div id="profile-links"> Hello, <a href="#" title="Edit your profile"><?php echo $_SESSION["username"];?></a><br />
        <br />
        <a href="#" title="View the Site">Welcome</a> | <a href="__APP__/Admin/Index/logout" title="Sign Out">退出</a> </div>
      <ul id="main-nav">
        <!-- Accordion Menu -->
<li><a href="__APP__/Admin/Space/index"
	class="nav-top-item no-submenu"> <!-- Add the class "no-submenu" to menu items with no sub menu -->
		管理面板 </a></li>
<li><a href="__APP__/Admin/Content/index" class="nav-top-item">
		<!-- Add the class "current" to current menu item --> 文章管理 </a>
	<ul>
		<li><a href="__APP__/Admin/Content/newcontent">添加文章</a>
		</li>
		<li><a href="__APP__/Admin/Content/index">查看文章</a>
		</li>
		<!-- Add class "current" to sub menu items also -->
	</ul></li>
<li><a href="__APP__/Admin/Category/index"
	class="nav-top-item  current"> 栏目分类 </a>
	<ul>
		<li><a href="__APP__/Admin/Category/newcategory" class="current">添加栏目</a>
		</li>
		<li><a href="__APP__/Admin/Category/index">查看栏目</a>
		</li>
	</ul></li>
<li><a href="__APP__/Admin/Channel/index" class="nav-top-item">
		频道管理 </a>
	<ul>
		<li><a href="__APP__/Admin/Channel/newchannel">添加频道</a>
		</li>
		<li><a href="__APP__/Admin/Channel/index">查看频道</a>
		</li>
	</ul></li>
<li><a href="__APP__/Admin/Page/index"
	class="nav-top-item"> 静态页面 </a>
	<ul>
		<li><a href="__APP__/Admin/Page/addhtml">添加页面</a>
		</li>
		<li><a href="__APP__/Admin/Page/index">查看页面</a>
		</li>
	</ul>
</li>
<li><a href="__APP__/Admin/Playbill/index"
	class="nav-top-item  no-submenu"> 首页BANNER </a>
</li>
<li><a href="__APP__/Admin/User/index"
	class="nav-top-item  no-submenu"> 用户管理 </a></li>
<li><a href="__APP__/Admin/Link/index"
	class="nav-top-item  no-submenu"> 友情链接 </a></li>
</ul>
<!-- End #main-nav -->
</div>
</div>
<!-- End #sidebar -->
<div id="main-content">
	<!-- Main Content Section with everything -->
	<noscript>
		<!-- Show a notification if the user has disabled javascript -->
		<div class="notification error png_bg">
			<div>
				Javascript is disabled or is not supported by your browser. Please <a
					href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a>
				your browser or <a
					href="http://www.google.com/support/bin/answer.py?answer=23852"
					title="Enable Javascript in your browser">enable</a> Javascript to
				navigate the interface properly. Download From <a
					href="http://www.exet.tk">exet.tk</a>
			</div>
		</div>
	</noscript>
	<!-- Page Head -->
	<h2>Welcome</h2>
	<p id="page-intro">
	<h3>快捷菜单</h3>
	</p>
	<ul class="shortcut-buttons-set">
		<li><a class="shortcut-button"
			href="__APP__/Admin/Content/newcontent"><span> <img
					src="/Public/resources/images/icons/pencil_48.png" alt="icon" /><br />
					写一篇文章 </span> </a>
		</li>
		<li><a class="shortcut-button" href="__APP__/Admin/Category/newcategory"><span> <img
					src="/Public/resources/images/icons/paper_content_pencil_48.png"
					alt="icon" /><br /> 添加一个分类 </span> </a>
		</li>
		<li><a class="shortcut-button" href="__APP__/Admin/Channel/newchannel"><span> <img
					src="/Public/resources/images/icons/image_add_48.png"
					alt="icon" /><br /> 添加一个频道 </span> </a>
		</li>
	</ul>
	<!-- End .shortcut-buttons-set -->
	<div class="clear"></div>
	<!-- End .clear -->
	<div class="content-box">
		<!-- Start Content Box -->
		<div class="content-box-header">
			<h3>Content box</h3>
			<ul class="content-box-tabs">
				<!-- href must be unique and match the id of target div -->
				<li><a href="#tab2" class="default-tab">Forms</a>
				</li>
			</ul>
			<div class="clear"></div>
		</div>
		<!-- End .content-box-header -->
		<div class="content-box-content">
			<!-- End #tab1 -->
			<div class="tab-content default-tab" id="tab2">
				<form method="POST" action="__URL__/addcategory">
					<p>
						<b>分类父栏</b> <select id="dropdown" name="category_parentid">
							<?php if(is_array($categories)): $i = 0; $__LIST__ = $categories;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$category): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($category["category_id"]); ?>">
								<?php echo ($category["category_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					</p>
					<p>
						<b>分类标题</b><input type="text" name="category_name"
							class="text-input small-input" id="small-input">
					</p>
					<p>
						<label>分类描述</label>
						<textarea name="category_description" id="textarea"
							class="text-input textarea"></textarea>
					</p>
					<p>
					<p>
						<label>导航显示</label> <input type="radio" name="category_navi"
							value='0'>NO&nbsp;&nbsp; <input type="radio"
							name="category_navi" value='1'>YES&nbsp;&nbsp;
					</p>
					<p>
						<b>导航排序</b><input type="text" name="category_sort"
							class="text-input small-input" id="small-input">
					</p>
					<p>
						<label>是否启用</label> <input type="radio" name="category_state"
							value='0'>NO&nbsp;&nbsp; <input type="radio"
							name="category_state" value='1'>YES&nbsp;&nbsp;
					</p>
					<p>
						完成提交:<input class="button" type="submit" name="submit" value="保存">
					</p>
				</form>
			</div>
			<!-- End #tab2 -->
		</div>
		<!-- End .content-box-content -->
	</div>
	<div class="clear"></div>
	<div id="footer">
		<small> <!-- Remove this notice or replace it with whatever you want -->
			&#169; Copyright 2010 Your Company | Powered by <a
			href="http://www.865171.cn">admin templates</a> | <a href="#">Top</a>
		</small>
	</div>
	<!-- End #footer -->
</div>
<!-- End #main-content -->
</div>
</body>
</html>